home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 43
/
Aminet 43 (2001)(GTI - Schatztruhe)[!][Jun 2001].iso
/
Aminet
/
comm
/
mail
/
YAMGenesis.lha
/
YAMGenesis
/
GenesisOffline.yam
next >
Wrap
Text File
|
2001-03-01
|
1KB
|
57 lines
/* GenesisOffline.yam - Go offline in Genesis
*
* $VER: GenesisOffline.yam 1.01 (1.3.01) © H. van der Ree <hivdree@uwnet.nl>
*
* This script is used after new mail is send or downloaded. It is importend
* that the option 'wait for ' is NOT ticked when the argument SENT is supplied,
* otherwise YAM will be locked!
*/
OPTIONS RESULTS
PARSE ARG args
interface = GETVAR(GENESISINTERFACE, "GLOBAL")
genesisport = "GENESIS"
file = "YAM:Rexx/YahooGroupsScanner.rexx"
IF pos("SEND", upper(args)) = 1 THEN DO
CALL SETVAR(YAMSTARTED, "YES", "GLOBAL")
ADDRESS "YAM"
'MAILCHECK' MANUAL
EXIT 0
END
IF pos("NEWS", upper(args)) = 1 THEN DO
ADDRESS COMMAND
'SYS:c/Yam2NN'
EXIT 0
END
/* Don't go offline if one of these applications is running */
ports = "IBROWSE VOYAGER AMFTP.1 AWebControlPort ATC_MAIN ATC_TRADER.1"
action = GETVAR(YAMSTART, "GLOBAL")
IF action = "YES" THEN DO
DO i = 1 TO WORDS(ports)
IF SHOW('P', WORD(ports, i)) THEN CALL LastBits
END
IF SHOW('P', genesisport) THEN DO
ADDRESS VALUE genesisport
ISONLINE interface
IF RC=1 THEN OFFLINE interface
END
END
LastBits:
CALL DELETEVAR(YAMSTART, "GLOBAL")
CALL DELETEVAR(YAMSTARTED, "GLOBAL")
IF EXISTS(file) THEN DO
ADDRESS REXX file
END
EXIT 0